package edu.sdjzu;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(name = "service", url = "http://localhost:9002") // 提供者服务运行在9002端
public interface ProviderFeignClient {
    @GetMapping("/data")
    String getProviderData();
}